import {
  accountModelProvider,
  databaseProviderName,
} from '@app/common/constants';
import { Connection } from 'mongoose';
import schema from '../schemas/account.schema';
const docName: string = 'account';

export const accountProviders = [
  {
    provide: accountModelProvider,
    useFactory: (connection: Connection) => connection.model(docName, schema),
    inject: [databaseProviderName],
  },
];
